package com.lovo.boot.service.impl;

import com.lovo.boot.bean.Emp;
import com.lovo.boot.dao.EmpMapper;
import com.lovo.boot.dto.EmpInfoDto;
import com.lovo.boot.service.IEmpService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author ren
 * @since 2022-03-22
 */
@Service
public class EmpServiceImpl extends ServiceImpl<EmpMapper, Emp> implements IEmpService {
    @Autowired
    private EmpMapper empMapper;
    @Override
    public List<Emp> findEmpListById(Integer id) {
        return empMapper.findEmpListById(id);
    }

    @Override
    public List<EmpInfoDto> findEmpListByName(String name) {
        return empMapper.findEmpListByName(name);
    }
}
